package com.edu.base.ums.collectRecord.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 会员收藏对象 cls_member_collect_record
 * 
 * @author admin
 * @date 2021-07-21
 */
@ApiModel("会员收藏和记录")
public class ClsMemberCollectRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 名称 */
    @ApiModelProperty(value= "课程Id")
    private String courseId;

 
    @ApiModelProperty(value= "会员Id") 
    private String memberId;

    /** 类型 1：我收藏,2:我查看记录 */
    @Excel(name = "类型 1：我收藏,2:我查看记录")
    @ApiModelProperty(value= "类型 1：我收藏,2:我查看记录")
    private String type;
    
    @Transient
    @ApiModelProperty(value= "课程名称") 
    private String courseName;
    
    @Transient
    @ApiModelProperty(value= "课程封面")
    private String coursePic;
    
    @Transient
    @ApiModelProperty(value= "生词数量") 
    private Long wordNum;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCourseId(String courseId) 
    {
        this.courseId = courseId;
    }

    public String getCourseId() 
    {
        return courseId;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    
    

    public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

    public String getCoursePic() {
        return coursePic;
    }

    public void setCoursePic(String coursePic) {
        this.coursePic = coursePic;
    }

    public Long getWordNum() {
		return wordNum;
	}

	public void setWordNum(Long wordNum) {
		this.wordNum = wordNum;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseId", getCourseId())
            .append("memberId", getMemberId())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
